
FROM rust:latest

# Install Clang
RUN apt-get update && apt-get install -y clang wget build-essential cmake \
    curl \
    python3 \
    python3-pip \
    python3-venv \
    openssh-client \
    git \
#    zstd 
# Install any needed packages specified in requirements.txt
# RUN pip install networkx
RUN wget -qO- https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.19.2/codeql-bundle-linux64.tar.gz | tar -xz -C / 
RUN rustup default nightly
# Set the working directory to /app
WORKDIR /app
# Default command to run slice.py with /app/project as the argument
#ENTRYPOINT ["python", "-m", "chernc"]

COPY . .

RUN python3 -m venv cherncvenv && \
    . cherncvenv/bin/activate && \
    pip install --upgrade pip && \
    pip install .

CMD ["./cherncvenv/bin/python" "-m" "chernc.cli.c2rust"]